package com.pianzhu.blockchainemr.utils;

public class CurrentHolder {
    private static final ThreadLocal<CurrentHolderInfo> CURRENT_LOCAL = new ThreadLocal<>();
    public static void  setCurrentLocal(CurrentHolderInfo currentHolderInfo) {
        CURRENT_LOCAL.set(currentHolderInfo);
    }

    public static CurrentHolderInfo getCurrentLocal() {
        return CURRENT_LOCAL.get();
    }
    public static void removeCurrentLocal() {
        CURRENT_LOCAL.remove();
    }
}
